package my.springboot.validation.simple;

import javax.validation.constraints.NotNull;


public class User{  
    
    @NotNull(message="userId不能为空")  //此处为校验注解  
    private String userId;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}  
    
    
}  
